package com.gg.common.mapper;

import com.gg.common.pojo.DModuleDetails;
import com.gg.common.pojo.DesignModule;
import com.gg.common.pojo.MDesignProcedureModule;

import java.util.List;

public interface DesignModuleMapper {

    /**
     * 根据物料编号查询
     * @param productId
     * @return
     */
    DesignModule queryDModuleDetailsByproductId(String productId);

    /**
     * 减去工序数量
     * @param mDesignProcedureModules
     * @return
     */
        int updateDesignModuleTag(List<MDesignProcedureModule> mDesignProcedureModules);

    /**
     * 根据产品编号查询
     * @param designModule
     * @return
     */
    DesignModule queryDesignModuleByproductId(String parenId);
    int deleteByPrimaryKey(Integer id);

    int insert(DesignModule record);

    int insertSelective(DesignModule record);

    DesignModule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DesignModule record);

    int updateByPrimaryKey(DesignModule record);
}